package com.zofer.study.string;

/**
 * 字符串反转
 */
public class StringReserve {

    public String solve (String str) {
        char [] atrArr = str.toCharArray();
        String reserveStr = "";
        for(int length = atrArr.length - 1;length >= 0;length--){
            reserveStr = reserveStr + atrArr[length];
        }
        return reserveStr;
    }
}
